<!doctype html>
<html lang="en-us">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Selectors: substring matching selectors</title>
    <link rel="stylesheet" href="../styles.css" />
    <style></style>

    <style class="editable">
      li[class^="a"] {
        font-size: 200%;
      }

      li[class$="a"] {
        background-color: yellow;
      }

      li[class*="a"] {
        color: red;
      }
    </style>
  </head>

  <body>
    <section class="preview">
      <h1>Attribute substring matching selectors</h1>
      <ul>
        <li class="a">Item 1</li>
        <li class="ab">Item 2</li>
        <li class="bca">Item 3</li>
        <li class="bcabc">Item 4</li>
      </ul>
    </section>

    <textarea class="playable playable-css" style="height: 200px">
li[class^="a"] {
  font-size: 200%;
}

li[class$="a"] {
  background-color: yellow;
}

li[class*="a"] {
  color: red;
}</textarea
    >

    <textarea class="playable playable-html" style="height: 160px">
<h1>Attribute substring matching selectors</h1>
<ul>
  <li class="a">Item 1</li>
  <li class="ab">Item 2</li>
  <li class="bca">Item 3</li>
  <li class="bcabc">Item 4</li>
</ul></textarea
    >

    <div class="playable-buttons">
      <input id="reset" type="button" value="Reset" />
    </div>
  </body>
  <script src="../playable.js"></script>
</html>
